import request from '@/utils/request'
// 获取列表
export function getList(data) {
  return request({
    url: '/capsule/web/manage/user/page',
    method: 'post',
    data: data
  })
}
// 新增
export function userAdd(data) {
  return request({
    url: '/capsule/web/manage/user/add',
    method: 'post',
    data: data
  })
}
// 修改
export function editUser(data) {
  return request({
    url: '/capsule//web/manage/user/modify',
    method: 'post',
    data: data
  })
}
//删除
export function deleteUser(id) {
  return request({
    url: '/capsule/web/manage/user/delManageUser/' + id,
    method: 'get'
  })
}
// 重置密码
export function setPass(data) {
  return request({
    url: '/capsule/web/manage/user/resetPwdByAdmin',
   method: 'post',
   data: data
  })
}
// 保洁
export function getSubRecordPage(data) {
  return request({
    url: '/capsule/web/sub/record/webSubRecordPage',
   method: 'post',
   data: data
  })
}
